package com.example.banksys;


import com.pixelduke.control.skin.FXSkins;
import handler.TimerHandler;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.ImageCursor;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;



import java.io.IOException;

public class MainApplication extends Application {

    public static boolean isteller;
    public static long employeeID;
    public static long tellerID;

    public static Stage mystage;
    @Override
    public void start(Stage stage) throws IOException {
        FXMLLoader fxmlLoader = new FXMLLoader(MainApplication.class.getResource("Login.fxml"));
        Scene scene = new Scene(fxmlLoader.load());
        scene.getStylesheets().add(FXSkins.getStylesheetURL());
        scene.setCursor(new ImageCursor(new Image("D:\\ProgrammeProjects\\BankSys\\src\\main\\resources\\com\\example\\banksys\\Img\\f075afcfbdb016762250c5392037a466f83223e2.png")));
        stage.setTitle("银行系统");
        stage.setScene(scene);
        stage.setResizable(false);
        //stage.setWidth(1024);
        //stage.setHeight(700);
        mystage=stage;
        stage.show();
        TimerHandler t=new TimerHandler();
        t.HandlingLongTermTrade();
    }

    public static void main(String[] args) {
        launch();
    }



}